import request from '@/utils/request'

export default {
  add(data) {
    return request.post('/course/arrange/add', data)
  },
  delete(id) {
    return request.post('/course/arrange/delete', { id })
  },
  edit(data) {
    return request.post('/course/arrange/edit', data)
  },
  info(id) {
    return request.post('/course/arrange/info', { id })
  },
  list(params) {
    return request.post('/course/arrange/list', params)
  },
  // 排课日志
  logs() {
    return request.post('/course/arrange/logs')
  },
  // 撤销排课
  revoke(id) {
    return request.post('/course/arrange/revoke', { id })
  },
  // 签到日志
  signLogs(arrangeCourseId) {
    return request.post('/course/arrange/sign-logs', { arrangeCourseId })
  },
  sign(arrangeCourseId, studentId, result, courseNum) {
    return request.post('/course/arrange/sign', { arrangeCourseId, studentId, result, courseNum })
  }
}
